package com.app.partner.control;

import com.app.partner.model.User;
import com.app.partner.model.like;
import com.app.partner.service.UserService;
import com.app.partner.service.likeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/likeController")

public class likeController {
   @Autowired
    likeService likeService;

    @RequestMapping(value="/partlikeServlet",method= RequestMethod.POST)
    public List<like> findAll() throws Exception{
        return likeService.findAll();
    }

}
